package com.example.k.list;


import java.util.ArrayList;

/**
 * Created by 佳星 on 08-02-0002.
 */
public class ArrDat {
    private static ArrDat ad = null;
    private static ArrayList<Wifidat> a=null;

    private ArrDat(){
        a = new ArrayList<Wifidat>();
    }

    public static ArrDat getInstance(){
        if (ad == null) {
           ad = new ArrDat();
        }
        return ad;
    }

    public static ArrayList<Wifidat> getArr(){
        if (ad == null) {
            ad = new ArrDat();
        }
        return a;
    }

    public void add(Wifidat d){
        a.add(d);

    }

    public Wifidat get(int i){
        return a.get(i);
    }

    public void clear(){
        a.clear();
    }



}
